package com.egao.common.module.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.JsonResult;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.company.entity.FieldRecord;
import com.egao.common.module.company.entity.vo.FieldRecordFormVO;
import com.egao.common.module.company.entity.vo.RecruitFormVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 场地预约记录信息(FiledRecord)表服务接口
 * @author dl
 */
public interface FieldRecordService extends IService<FieldRecord> {
    /**
     * 添加场地预约记录
     * @param fieldRecordFormVO 场地预约记录表单
     * @return JsonResult 场地结果
     */
    JsonResult saveFieldRecord(FieldRecordFormVO fieldRecordFormVO);
    /**
     * 删除场地预约记录
     * @param fieldRecordFormVO 场地预约记录表单
     * @return JsonResult 场地结果
     */
    JsonResult deleteFieldRecord(FieldRecordFormVO fieldRecordFormVO);
    /**
     * 查询预约记录
     * @param page 场地预约记录表单
     * @return List<FieldRecordFormVO> 记录集合
     */
    List<FieldRecordFormVO> listRecord(PageParam<FieldRecordFormVO> page);

    /**
     * 查询当天的所有预约记录
     * @param page
     * @return
     */
    List<FieldRecordFormVO> queryDayListRecord(PageParam<FieldRecordFormVO> page);

    /**
     * 锁定当前时间段
     * @param fieldRecordFormVO
     * @return
     */
    JsonResult lockFieldRecord(FieldRecordFormVO fieldRecordFormVO);

}
